Ubuntu 14.04
Sponsored Link

Install Clam AntiVirus
2014/05/02
 
Install Clam AntiVirus to protect server from virus.
[1] Install Clamav
root@dlp:~#
apt-get -y install clamav
root@dlp:~#
freshclam
# update pattern files

ClamAV update process started at Fri May  2 22:56:58 2014
Downloading main.cvd [100%]
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 18906, sigs: 923801, f-level: 63, builder: jesler)
bytecode.cvd is up to date (version: 236, sigs: 43, f-level: 63, builder: dgoddard)
Database updated (3348069 signatures) from db.local.clamav.net (IP: 203.212.42.128)
[2] Try to scan
root@dlp:~#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 3342662
Engine version: 0.98.1
Scanned directories: 3
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 7.235 sec (0 m 7 s)

# download test virus

root@dlp:~#
wget http://www.eicar.org/download/eicar.com
root@dlp:~#
clamscan --infected --remove --recursive ./

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.
# just detected
----------- SCAN SUMMARY -----------
Known viruses: 3342662
Engine version: 0.98.1
Scanned directories: 3
Scanned files: 6
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.01 MB (ratio 0.33:1)
Time: 7.184 sec (0 m 7 s)
 
Tweet